home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr50
/
pbc22b.zip
/
PBC$BAS.ZIP
/
MSHUFFLI.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-04-19
|
650b
|
15 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1993 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
DECLARE FUNCTION RndI% (TopValue%)
SUB MatShuffleI (Array() AS INTEGER, StartPosn%, EndPosn%)
Elements% = EndPosn% - StartPosn% + 1
FOR tmp% = StartPosn% TO EndPosn%
SWAP Array(tmp%), Array(RndI%(Elements%) + StartPosn%)
NEXT
END SUB